local Lua__lunshi = fk.CreateSkill{
  name = "Lua__lunshi",
  tags = {Skill.Compulsory},
  anim_type = "drawcard",
}

Fk:loadTranslationTable{
  ["Lua__lunshi"] = "论史",
  [":Lua__lunshi"] = "锁定技，你的ⅹ+1阶段视为摸牌阶段(ⅹ为你装备区装备数)",
}

-- 在开始阶段结束时，根据装备区数量安排额外摸牌阶段
Lua__lunshi:addEffect(fk.EventPhaseChanging, {
    can_trigger = function(self, event, target, player, data)
      if target == player and player:hasSkill(self) then
        local num = #player:getCardIds(Player.Equip) + 1
          return data.phase == num and player:usedSkillTimes(self.name,Player.HistoryTurn) < player.hp
      end
    end,
    on_use = function(self, event, target, player, data)
      local room = player.room
      data.phase = Player.Draw
    end,
  })


return Lua__lunshi 